import Vue from 'vue'
import App from './App.vue'
import router from './router'
import md5 from 'js-md5';
import store from './store'
import {
  Popup,
  PasswordInput,
  NumberKeyboard,
  Loading,
  Button, 
  Form, 
  Field, 
  Toast, 
  Icon, 
  GridItem, 
  Grid, 
  Swipe,
  SwipeItem,
  SwipeCell,
  PullRefresh, 
  List, 
  Tab, 
  Tabs, 
  AddressEdit,
  CheckboxGroup,
  Checkbox,
  SubmitBar,
  Stepper,
  AddressList,
  GoodsAction, 
  GoodsActionIcon, 
  GoodsActionButton,
  Area,
  Overlay
} from 'vant';
import 'lib-flexible/flexible';
import 'vant/lib/index.css';
Vue.use(Form)
.use(PasswordInput)
.use(NumberKeyboard)
.use(Overlay)
.use(Area)
.use(Loading)
.use(Popup)
.use(Field)
.use(Toast)
.use(Button)
.use(Icon)
.use(GridItem)
.use(Grid)
.use(Swipe)
.use(SwipeItem)
.use(SwipeCell)
.use(List)
.use(Tab)
.use(Tabs)
.use(PullRefresh)
.use(GoodsAction)
.use(GoodsActionButton)
.use(GoodsActionIcon)
.use(Checkbox)
.use(CheckboxGroup)
.use(SubmitBar)
.use(Stepper)
.use(AddressEdit)
.use(AddressList);


Vue.config.productionTip = false;
import './mock/index.js'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

Vue.prototype.$md5 = md5;
window.vRouter = router
